/**
 * @Auto generation code
 * Service Leave Controller
 */
import request from '../common/request/request.js'

/**
 * 
 * path, params, loading
 * query - GET
 */
export const query = async ({// query params
		start ,   // start  
		limit  = param.default   // limit  
	
}, loading) => {
	return await request.get('/serviceLeave', {
		 start,  limit, 
	}, loading)
}


/**
 * 
 * path, params, body, loading
 * apply - POST
 */
export const apply = async (loading) => {
	return await request.post('/serviceLeave/apply', {
		
	}, {
		
	}, loading)
}


 console.log('存在delete方法，未兼容/serviceLeave/cancel/${id}，后端需要更正');
/**
 * 
 * path, params, loading
 * detail - GET
 */
export const detail = async (, {// path params
		id   // id ,必填 
	
}, loading) => {
	return await request.get('/serviceLeave/${id}', {
		
	}, loading)
}

